/*
 * ksContainerBlockWriter.h
 *
 *  Created on: Aug 3, 2011
 *      Author: wang
 */

#ifndef KSCONTAINERBLOCKWriter_H_
#define KSCONTAINERBLOCKWriter_H_
#include "../ksContainerBlock.h"

class ksContainerBlockWriter: public ksContainerBlock, public ksBlockWriter
{
public:
    void addBlock(const ksBlock* block);
    void save(std::ofstream & out);
public:
    void prepare( int absoultPosition );
public:
    unsigned int blockLength();
public:
    virtual ksBlockWriter* writer()
    {
        return this;
    }
};

#endif /* KSCONTAINERBLOCK_H_ */
